<admintpl file="header" />
</head>
<body>
	<div class="wrap js-check-wrap">
		<ul class="nav nav-tabs">
			<li class="active"><a href="javascript:;">上级消费机构实时统计</a></li>
		</ul>
		<form class="well form-search" id="form_search" method="post" action="{:U('AdminSaleManager/real_bill')}">
			<input type="text" name="s_start_time" id="s_start_time" value="<php> echo date('Y-m-d H:i',$s_start_time);</php>" style="margin-bottom: 0px;" class="js-datetime" placeholder="开始时间" >
			至
			<input type="text" name="s_end_time" id="s_end_time" value="<php> echo date('Y-m-d H:i',$s_end_time);</php>" style="margin-bottom: 0px;" class="js-datetime" placeholder="结束时间">

			<input type="submit" class="btn btn-primary" value="搜索" />
			<input type="hidden" name="s_download" id="s_download" value="0"/>
			<a class="btn btn-primary" style="float: right;margin-right:15px;margin-bottom:10px;" href="javascript:downloadExcel(1);">导出报表</a>
		</form>
		<form class="js-ajax-form" action="" method="post">


			<table class="table table-hover table-bordered table-list">
				<thead>
					<tr>
                        <th width="50">机构名称</th>
                        <th width="50">机构余额</th>
						<th width="50">销售笔数	</th>
						<th width="50">加油数量（升）	</th>
						<th width="50">加气数量（升）	</th>
					</tr>
				</thead>
				<foreach name="list" item="vo">
				<tr>
                    <td>{$vo.sale_manage_name}</td>
					<td>{$vo.balance}</td>
					<td>{$vo.sale_num}</td>
					<td>{$vo.sale_oil_num}</td>
					<td>{$vo.sale_nooil_num}</td>
				</tr>
				</foreach>

			</table>

			<div class="pagination">{$page}</div>
		</form>
	</div>
	<script src="__PUBLIC__/js/common.js?1"></script>
	<script>
		function refersh_window() {
			var refersh_time = getCookie('refersh_time');
			if (refersh_time == 1) {
				window.location = "{:U('AdminSaleManager/real_bill',$formget)}";
			}
		}

	</script>
</body>
</html>